// 视图组件
const view = {
    tabs: () => import('@/layouts/tabs'),
    blank: () => import('@/layouts/BlankView'),
    page: () => import('@/layouts/PageView')
}

// 路由组件注册
const routerMap = {
    login: {
        authority: '*',
        path: '/login',
        component: () => import('@/views/login/index')
    },
    root: {
        path: '/',
        name: '首页',
        redirect: '/login',
        component: view.tabs
    },

    workplace: {
        name: '工作台',
        component: () => import('@/views/home')
    },

    form: {
        name: '表单页',
        icon: 'form',
        component: view.page
    },


}
export default routerMap

